package org.example.batchutils.controller;



import org.example.batchutils.pojo.Result;
import org.example.batchutils.service.DeptsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequestMapping("/depts")
@RestController
public class DeptsController {

    @Autowired
    private DeptsService deptsService;

//    @RequestMapping(value = "/depts",method = RequestMethod.GET)
    @GetMapping
    public Result getAllDepts(String poolName) {
        return deptsService.getAllDepts(poolName);
    }


}
